home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_1 / extman / install_extman < prev    next >
Text File  |  1980-11-19  |  5KB  |  134 lines

  1. ;
  2. ; Script di installazione per ExtMan 1.15 (25.07.97)
  3. ;
  4.  
  5. ; Stringhe
  6.  
  7. (set @default-dest  "")
  8. (set @default-message "")
  9. (set lib-def-dest   "LIBS:")
  10. (set extman-dest    "SYS:Tools")
  11.  
  12. ; E' un Amiga 3.0?
  13. (if (= @language "italiano")
  14. (
  15.         (if (< (/ (getversion) 65536) 39) (abort "Devi avere il Kickstart 3.0 (o superiore) per usare\nEasyPrint."))
  16.  
  17.         (message
  18.                 (cat      "\n\n\nExtMan, script di installazione.\n"
  19.                           "Questa procedura installa ExtMan sul vostro Amiga.\n\n"
  20.                           "(C) Copyright 1995-1997 Alain Martini.\n Tutti i diritti sono riservati"
  21.                 ))
  22.  
  23.         (set lib-dest
  24.                 (askdir
  25.                         (prompt  "Dove desideri venga copiata la libreria 'wizard.library' (sarà copiata solo se più recente di quella già installata)?")
  26.                         (help    "    Se usi una directory per le librerie create da terzi, adesso puoi specificarla.")
  27.                         (default lib-def-dest)
  28.                 )
  29.         )
  30.  
  31.         (copylib
  32.                 (prompt (cat "Copio la wizard.library in " (tackon lib-dest "wizard.library")))
  33.                 (help   @copylib-help)
  34.                 (source "libs/wizard.library")
  35.                 (dest   lib-dest)
  36.                 (confirm)
  37.         )
  38.  
  39.         (set extman-dest
  40.                 (askdir
  41.                         (prompt  "Dove desideri installare ExtMan (sarà creato un nuovo cassetto chiamato 'ExtMan')?")
  42.                         (help    "    Seleziona il cassetto in cui installare ExtMan.")
  43.                         (default extman-dest)
  44.                         (disk)
  45.                 )
  46.         )
  47.  
  48.         (if (NOT (exists (tackon extman-dest "ExtMan")))
  49.             (makedir (tackon extman-dest "ExtMan")
  50.                      (infos)))
  51.  
  52.         (copyfiles
  53.             (prompt "Copio 'Extman' in " extman-dest "ExtMan/...")
  54.             (source "ExtMan/")
  55.             (dest   (tackon extman-dest "ExtMan"))
  56.             (all)
  57.         )
  58.  
  59.         (copyfiles
  60.             (prompt "Copio 'ExtMan.guide' in " extman-dest "Extman/...")
  61.             (source "ExtMan_1.15")
  62.             (dest   (tackon extman-dest "ExtMan"))
  63.         )
  64.  
  65.         (copyfiles
  66.             (prompt "Copio 'ExtMan_eng.guide' in " extman-dest "ExtMan/...")
  67.             (source "Credits")
  68.             (dest   (tackon extman-dest "ExtMan"))
  69.         )
  70. )
  71. (
  72.         (if (< (/ (getversion) 65536) 39) (abort "ExtMan need at least OS 3.0"))
  73.  
  74.         (message
  75.                 (cat      "\n\n\nEasyPrint, installation script.\n\n"
  76.                           "This script installs ExtMan on your Amiga.\n\n"
  77.                           "(C) Copyright 1996-1997 by Alain Martini\nAll rights reserved."
  78.                 )
  79.         )
  80.  
  81.         ; Ask where to copy the library.
  82.  
  83.         (set lib-dest
  84.                 (askdir
  85.                         (prompt  "Select directory where to install the library 'wizard.library' (copy the library using version checking).")
  86.                         (help    "    Copy the library using version checking; i.e., it only overwrites an existing library if the new library has a higher version/revision number.")
  87.                         (default lib-def-dest)
  88.                 )
  89.         )
  90.  
  91.         ; Copy the library.
  92.  
  93.         (copylib
  94.                 (prompt (cat "Copying wizard.library to " lib-dest))
  95.                 (help   @copylib-help)
  96.                 (source "libs/wizard.library")
  97.                 (dest   lib-dest)
  98.                 (confirm)
  99.         )
  100.  
  101.         (set extman-dest
  102.                 (askdir
  103.                         (prompt  "Select directory where to install ExtMan (a directory called `ExtMan` will be created here).")
  104.                         (help    "    If you specify a path, a new directory called `ExtMan` will be created in it. The program will be copied in this directory.")
  105.                         (default extman-dest)
  106.                         (disk)
  107.                 )
  108.         )
  109.  
  110.         (if (NOT (exists (tackon extman-dest "ExtMan")))
  111.             (makedir (tackon extman-dest "ExtMan")
  112.                      (infos)))
  113.  
  114.         (copyfiles
  115.             (prompt "Copying 'ExtMan' to " extman-dest "ExtMan/...")
  116.             (source "ExtMan/")
  117.             (dest   (tackon extman-dest "ExtMan"))
  118.             (all)
  119.         )
  120.  
  121.         (copyfiles
  122.             (prompt "Copying 'ExtMan.guide' to " extman-dest "ExtMan/...")
  123.             (source "ExtMan.guide")
  124.             (dest   (tackon extman-dest "ExtMan"))
  125.         )
  126.  
  127.         (copyfiles
  128.             (prompt "Copying 'ExtMan_eng.guide' to " extman-dest "ExtMan/...")
  129.             (source "ExtMan_eng.guide")
  130.             (dest   (tackon extman-dest "ExtMan"))
  131.         )
  132. )
  133. ) ; if
  134.